# -*- coding: utf-8 -*-
import os, pygame

CAPTION = "Newsmachine"
RESOLUTION = (800, 600)
FULLSCREEN = True
FRAMERATE = 60

BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
BACKGROUND = BLACK

# if True, the image is flipped vertically
FLIP = True

# token sprites are drawn if True
DRAW_SPRITES = True

# defines on which host and port the game should listen for OSC packages
HOST = "127.0.0.1"
PORT = 3333

# pygame event types
PLAYNEXT = pygame.USEREVENT+1
PLAYPREVIEW = pygame.USEREVENT+2

# maps f_id to word types
WORDS = {
    0: "adjektiv",
    1: "adverb",
    2: "artikel",
    3: "konjunktion",
    4: "nomen",
    5: "pronomen",
    6: "verben",
}

DATA_PATH = "data"
HELP_PATH = os.path.join(DATA_PATH, "help.png")
HELP_POSITION = (500, 30)

# path to token image
TOKEN_PATH = os.path.join(DATA_PATH, "tokens")
TOKEN_IMAGE = os.path.join(DATA_PATH, "token.png")
TOKEN_SKELETON = os.path.join(TOKEN_PATH, "token_%s.png")
PREVIEW_PREFIX = "pre_"

TRACKING_HEIGHT = 200
TRACKING_WIDTH = 800
TRACKING_TOP = 400
TRACKING_RECT = (TRACKING_WIDTH, TRACKING_HEIGHT)
TRACKING_COLOR = WHITE

# path to the directory with the movie files
MOVIE_PATH = os.path.join(os.path.expanduser("~"), "Movies", "Newsmachine")
DIMENSIONS = {
    "preview": {
        "size": (320, 240),
        "top": 40,
        "left": 240,
    },
    "full": {
        "size": (640, 480),
        "top": 40,
        "left": 80,
    }
}
